import request from "@/utils/request";

// 获取角色
export function role() {
  return request({
    url: "/role/role",
    method: "get",
  });
}

// 删除角色下的权限
export function delMenu(rid, mid) {
  return request({
    url: `/role/del_menu/${rid}/${mid}/`,
    method: "get",
  });
}

// 设置角色下的权限
export function setRoleMenu(data) {
  return request({
    url: `/role/set_menu/`,
    method: "post",
    data,
  });
}
